#ifndef CRYPT_H
#define CRYPT_H

#include <QObject>
#include <QtCrypto/qca.h>
#include <QDebug>

namespace CryptBase64 {

class crypt : public QObject
{
    Q_OBJECT
public:
    explicit crypt(QObject *parent = 0);

    QByteArray encoding(const QByteArray& byteA);
    QByteArray decoding(const QString& data);

private:
    QString encode;
    QByteArray decode;

    QCA::Initializer init;
    QCA::Base64 encodeData;
    QCA::MemoryRegion memReg;
        
};

}

#endif // CRYPT_H
